package com.carb.interceptor;

import com.carb.enums.UserRole;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 会员拦截器
 */
@Component
public class JwtTokenMemberInterceptor extends JwtTokenInterceptor {

    /**
     * 获取会员角色
     * @return 会员角色
     */
    @Override
    protected List<String> getRequiredRole() {
        return List.of(UserRole.MEMBER.getDesc());
    }

}
